class Error

	def Error.db_error(e)
		$glade["error_title"].label = '<span weight="bold" size="larger">' + _("Database Error") + '</span>'
		$glade["error"].label = _("The database returned the following error:") + "\n#{e.message}"
		$glade["error_details"].buffer.text = e.backtrace.join("\n")
		$glade["exception"].show
	end

end
